home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / mactest.z / mactest
Encoding:
Text File  |  2002-10-03  |  3.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. mmmmaaaacccctttteeeesssstttt((((1111))))                                                          mmmmaaaacccctttteeeesssstttt((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mactest - Tests MAC labels on directories, files and processes.
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      mactest ----PPPP -_D|_d|_e|_x file
  13.      mactest ----FFFF -_D|_d|_e|_x file1 file2
  14.      mactest ----LLLL -_D|_d|_e|_x label file1
  15.      mactest ----MMMM [directory]
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      The _m_a_c_t_e_s_t command allows the current process and specified
  19.      files/directories to have their MAC label attributes compared for
  20.      dominance, equality and moldyness.
  21.  
  22.      _m_a_c_t_e_s_t evaluates the MAC labels using the given options and returns a
  23.      boolean result.
  24.  
  25.      The options PPPP, FFFF, LLLL and MMMM determine the type of test:
  26.  
  27.           ----PPPP    Compare current running process and file.
  28.           ----FFFF    Compare two files.
  29.           ----LLLL    Compare MAC label and file.
  30.           ----MMMM    Check if the process or directory is moldy.
  31.  
  32.      The options DDDD, dddd, eeee and xxxx determine the type of comparison test:
  33.  
  34.           DDDD     if [Process | file1 | maclabel] _d_o_m_i_n_a_t_e_s file
  35.           dddd     if [Process | file1 | maclabel] is _d_o_m_i_n_a_t_e_d by file
  36.           eeee     if [Process | file1 | maclabel] and file compare as _e_q_u_a_l
  37.           xxxx     if [Process | file1 | maclabel] and file are _e_x_a_c_t_l_y _e_q_u_a_l
  38.  
  39. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  40.      _m_a_c_t_e_s_t returns 0000((((TTTTrrrruuuueeee)))) if the test is successful, 1111((((FFFFaaaallllsssseeee)))) if the test
  41.      failed and ----1111 on error.
  42.  
  43.      The ----MMMM (moldy) test option will only return 0000((((TTTTrrrruuuueeee)))) if the current
  44.      process is also moldy, as moldy directories are transparent to non-moldy
  45.      processes. See newlabel(1).
  46.  
  47. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  48.      _m_a_c_t_e_s_t -P -D abc.txt
  49.           Will return 0(True) if the process MAC label dominates the MAC label
  50.           of the file abc.txt
  51.  
  52.      _m_a_c_t_e_s_t -Lx userlow abc.txt
  53.           Will return 0(True) if the label 'userlow' is exactly the same as
  54.           the MAC label of abc.txt
  55.  
  56.      _m_a_c_t_e_s_t -M tmp
  57.           Will return 0(True) if the directory 'tmp' has a moldy MAC label.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. mmmmaaaacccctttteeeesssstttt((((1111))))                                                          mmmmaaaacccctttteeeesssstttt((((1111))))
  71.  
  72.  
  73.  
  74.      _m_a_c_t_e_s_t -M
  75.           Will return 0(True) if the process MAC label is moldy.
  76.  
  77. FFFFIIIILLLLEEEESSSS
  78.      /etc/mac - MAC Label definitions.
  79.  
  80. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  81.      chlabel(1), newlabel(1), and test(1)
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.